Skip to content

Commit ba282a4

Browse files
committed
Fix demo ifdefs
1 parent 5c41155 commit ba282a4

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

lang/rust/pseudorust.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,17 +2923,11 @@ extern "C"
29232923
{
29242924
BN_DECLARE_CORE_ABI_VERSION
29252925

2926-
#ifndef DEMO_VERSION
29272926
BINARYNINJAPLUGIN void CorePluginDependencies()
29282927
{
29292928
}
2930-
#endif
29312929

2932-
#ifdef DEMO_VERSION
2933-
bool PseudoCPluginInit()
2934-
#else
29352930
BINARYNINJAPLUGIN bool CorePluginInit()
2936-
#endif
29372931
{
29382932
LanguageRepresentationFunctionType* type = new PseudoRustFunctionType();
29392933
LanguageRepresentationFunctionType::Register(type);

plugins/warp/api/warpcore.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#endif // WARP_LIBRARY
2222
#else // __GNUC__
2323
#ifdef _MSC_VER
24-
#ifndef DEMO_VERSION
24+
#ifndef DEMO_EDITION
2525
#ifdef WARP_LIBRARY
2626
#define WARP_FFI_API __declspec(dllexport)
2727
#else // WARP_LIBRARY
@@ -101,7 +101,7 @@ extern "C"
101101
};
102102

103103
WARP_FFI_API void BNWARPRunMatcher(BNBinaryView* view);
104-
104+
105105
WARP_FFI_API bool BNWARPGetBasicBlockGUID(BNBasicBlock* basicBlock, BNWARPBasicBlockGUID* result);
106106
WARP_FFI_API bool BNWARPGetAnalysisFunctionGUID(BNFunction* analysisFunction, BNWARPFunctionGUID* result);
107107
WARP_FFI_API bool BNWARPIsLiftedInstructionVariant(BNLowLevelILFunction* liftedFunction, size_t idx);
@@ -120,15 +120,15 @@ extern "C"
120120
WARP_FFI_API bool BNWARPContainerIsSourceUncommitted(BNWARPContainer* container, const BNWARPSource* source);
121121
WARP_FFI_API bool BNWARPContainerIsSourceWritable(BNWARPContainer* container, const BNWARPSource* source);
122122
WARP_FFI_API char* BNWARPContainerGetSourcePath(BNWARPContainer* container, const BNWARPSource* source);
123-
123+
124124
WARP_FFI_API bool BNWARPContainerAddFunctions(BNWARPContainer* container, const BNWARPTarget* target, const BNWARPSource* source, BNWARPFunction** functions, size_t count);
125125
WARP_FFI_API bool BNWARPContainerAddTypes(BNBinaryView* view, BNWARPContainer* container, const BNWARPSource* source, BNType** types, size_t count);
126126

127127
WARP_FFI_API bool BNWARPContainerRemoveFunctions(BNWARPContainer* container, const BNWARPTarget* target, const BNWARPSource* source, BNWARPFunction** functions, size_t count);
128128
WARP_FFI_API bool BNWARPContainerRemoveTypes(BNWARPContainer* container, const BNWARPSource* source, BNWARPTypeGUID* types, size_t count);
129129

130130
WARP_FFI_API void BNWARPContainerFetchFunctions(BNWARPContainer* container, BNWARPTarget* target, const char** sourceTags, size_t sourceTagCount, const BNWARPTypeGUID* guids, size_t count);
131-
131+
132132
WARP_FFI_API BNWARPSource* BNWARPContainerGetSourcesWithFunctionGUID(BNWARPContainer* container, const BNWARPTarget* target, const BNWARPFunctionGUID* guid, size_t* count);
133133
WARP_FFI_API BNWARPSource* BNWARPContainerGetSourcesWithTypeGUID(BNWARPContainer* container, const BNWARPTypeGUID* guid, size_t* count);
134134
WARP_FFI_API BNWARPFunction** BNWARPContainerGetFunctionsWithGUID(BNWARPContainer* container, const BNWARPTarget* target, const BNWARPSource* source, const BNWARPFunctionGUID* guid, size_t* count);

view/kernelcache/api/kernelcachecore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C"
1414
#endif // KERNELCACHE_LIBRARY
1515
#else // __GNUC__
1616
#ifdef _MSC_VER
17-
#ifndef DEMO_VERSION
17+
#ifndef DEMO_EDITION
1818
#ifdef KERNELCACHE_LIBRARY
1919
#define KERNELCACHE_FFI_API __declspec(dllexport)
2020
#else // KERNELCACHE_LIBRARY

view/sharedcache/api/sharedcachecore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#endif // SHAREDCACHE_LIBRARY
99
#else // __GNUC__
1010
#ifdef _MSC_VER
11-
#ifndef DEMO_VERSION
11+
#ifndef DEMO_EDITION
1212
#ifdef SHAREDCACHE_LIBRARY
1313
#define SHAREDCACHE_FFI_API __declspec(dllexport)
1414
#else // SHAREDCACHE_LIBRARY
@@ -119,7 +119,7 @@ extern "C"
119119

120120
SHAREDCACHE_FFI_API bool BNSharedCacheControllerIsImageLoaded(BNSharedCacheController* controller, BNSharedCacheImage* image);
121121
SHAREDCACHE_FFI_API bool BNSharedCacheControllerIsRegionLoaded(BNSharedCacheController* controller, BNSharedCacheRegion* region);
122-
122+
123123
SHAREDCACHE_FFI_API bool BNSharedCacheControllerGetRegionAt(BNSharedCacheController* controller, uint64_t address, BNSharedCacheRegion* outRegion);
124124
SHAREDCACHE_FFI_API bool BNSharedCacheControllerGetRegionContaining(BNSharedCacheController* controller, uint64_t address, BNSharedCacheRegion* region);
125125

0 commit comments

Comments
 (0)