added is_amd64_server

This commit is contained in:
David Anderson 2004-09-21 02:40:30 +00:00
parent b8ca4586ad
commit be3d078d5a
2 changed files with 13 additions and 0 deletions

View File

@ -351,6 +351,15 @@ static cell AMX_NATIVE_CALL is_linux_server(AMX *amx, cell *params)
#endif
}
static cell AMX_NATIVE_CALL is_amd64_server(AMX *amx, cell *params)
{
#if SMALL_CELL_SIZE==64
return 1;
#else
return 0;
#endif
}
static cell AMX_NATIVE_CALL is_jit_enabled(AMX *amx, cell *params) // PM: Useless ;P
{
#ifdef JIT
@ -2731,6 +2740,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_amd64_server", is_amd64_server },
{ "is_jit_enabled", is_jit_enabled },
{ "is_user_authorized", is_user_authorized },
{ "is_map_valid", is_map_valid },

View File

@ -187,6 +187,9 @@ native is_dedicated_server();
/* Returns 1 or 0. */
native is_linux_server();
/* Returns 1 or 0. */
native is_amd64_server();
/* Returns 1 or 0. */
native is_jit_enabled();