Add support for compiling and running engine without C# scripting
(configurable via `EngineConfiguration.UseCSharp` in Flax.Build)
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
#include "Engine/Debug/DebugLog.h"
|
||||
#include "Engine/Core/Log.h"
|
||||
#include "ScriptingType.h"
|
||||
#include "Types.h"
|
||||
|
||||
#if USE_MONO
|
||||
|
||||
extern "C" FLAXENGINE_API void mono_add_internal_call(const char* name, const void* method);
|
||||
#define ADD_INTERNAL_CALL(fullName, method) mono_add_internal_call(fullName, (const void*)method)
|
||||
@@ -46,3 +49,13 @@ extern "C" FLAXENGINE_API void mono_add_internal_call(const char* name, const vo
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define ADD_INTERNAL_CALL(fullName, method)
|
||||
#define INTERNAL_CALL_CHECK(obj)
|
||||
#define INTERNAL_CALL_CHECK_EXP(expression)
|
||||
#define INTERNAL_CALL_CHECK_RETURN(obj, defaultValue)
|
||||
#define INTERNAL_CALL_CHECK_EXP_RETURN(expression, defaultValue)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user