| 887 | #endif |
| 888 | |
| 889 | void nullcTerminate() |
| 890 | { |
| 891 | using namespace NULLC; |
| 892 | nullcLastError = ""; |
| 893 | if(!initialized) |
| 894 | return; |
| 895 | |
| 896 | NULLC::dealloc(argBuf); |
| 897 | argBuf = NULL; |
| 898 | |
| 899 | BinaryCache::Terminate(); |
| 900 | |
| 901 | NULLC::destruct(compiler); |
| 902 | compiler = NULL; |
| 903 | #ifndef NULLC_NO_EXECUTOR |
| 904 | nullcDeinitTypeinfoModule(); |
| 905 | nullcDeinitDynamicModule(); |
| 906 | |
| 907 | NULLC::destruct(linker); |
| 908 | linker = NULL; |
| 909 | NULLC::destruct(executor); |
| 910 | executor = NULL; |
| 911 | #endif |
| 912 | #ifdef NULLC_BUILD_X86_JIT |
| 913 | NULLC::destruct(executorX86); |
| 914 | executorX86 = NULL; |
| 915 | #endif |
| 916 | #ifndef NULLC_NO_EXECUTOR |
| 917 | NULLC::ResetMemory(); |
| 918 | #endif |
| 919 | CodeInfo::funcInfo.reset(); |
| 920 | CodeInfo::varInfo.reset(); |
| 921 | CodeInfo::typeInfo.reset(); |
| 922 | |
| 923 | CodeInfo::cmdList.reset(); |
| 924 | CodeInfo::nodeList.reset(); |
| 925 | CodeInfo::funcDefList.reset(); |
| 926 | |
| 927 | CodeInfo::cmdInfoList.Reset(); |
| 928 | |
| 929 | CodeInfo::typeArrays.reset(); |
| 930 | CodeInfo::typeFunctions.reset(); |
| 931 | CodeInfo::classMap.reset(); |
| 932 | |
| 933 | CodeInfo::namespaceInfo.reset(); |
| 934 | |
| 935 | initialized = false; |
| 936 | } |
| 937 | |
| 938 | ////////////////////////////////////////////////////////////////////////// |
| 939 | /* nullc_debug.h functions */ |