From 1cd4dc20dce754bfc416c54f6d37b12f14c8b869 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Wed, 21 Jul 2004 19:59:39 +0000 Subject: [PATCH] Added native is_jit_enabled --- amxmodx/amxmodx.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index e87e7ca4..f9aeeca8 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -302,6 +302,15 @@ static cell AMX_NATIVE_CALL is_linux_server(AMX *amx, cell *params) #endif } +static cell AMX_NATIVE_CALL is_jit_enabled(AMX *amx, cell *params) // PM: Useless ;P +{ +#ifdef JIT + return 1; +#else + return 0; +#endif +} + static cell AMX_NATIVE_CALL is_map_valid(AMX *amx, cell *params) /* 1 param */ { int ilen; @@ -2567,6 +2576,7 @@ AMX_NATIVE_INFO amxmod_Natives[] = { { "get_xvar_num", get_xvar_num }, { "is_dedicated_server",is_dedicated_server }, { "is_linux_server", is_linux_server }, + { "is_jit_enabled", is_jit_enabled }, { "is_user_authorized", is_user_authorized }, { "is_map_valid", is_map_valid }, { "is_user_alive", is_user_alive },