| 1 |
/* |
| 2 |
Copyright(c) 2002-2017 Anatoliy Kuznetsov(anatoliy_kuznetsov at yahoo.com) |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. |
| 15 |
|
| 16 |
For more information please visit: http://bitmagic.io |
| 17 |
*/ |
| 18 |
|
| 19 |
#include "libbm.h" |
| 20 |
#include "try_throw_catch.h" |
| 21 |
|
| 22 |
#if defined(_MSC_VER) |
| 23 |
__declspec(thread) jmp_buf ex_buf__; |
| 24 |
#else |
| 25 |
__thread jmp_buf ex_buf__; |
| 26 |
#endif |
| 27 |
|
| 28 |
#define BM_NO_STL |
| 29 |
#define BM_NO_CXX11 |
| 30 |
#define BMALLOC__H__INCLUDED__ |
| 31 |
|
| 32 |
#define BM_ASSERT_THROW(x, xerrcode) if (!(x)) BM_THROW( xerrcode ) |
| 33 |
|
| 34 |
|
| 35 |
#include "bmdef.h" |
| 36 |
#include "bmconst.h" |
| 37 |
#include "bmsimd.h" |
| 38 |
#include "bmcalloc.h" |
| 39 |
#include "bm.h" |
| 40 |
|
| 41 |
#include <new> |
| 42 |
|
| 43 |
typedef libbm::standard_allocator TBM_Alloc; |
| 44 |
typedef bm::bvector<libbm::standard_allocator> TBM_bvector; |
| 45 |
|
| 46 |
|
| 47 |
#include "libbm_impl.cpp" |
| 48 |
|
| 49 |
|
| 50 |
|