Infinite Compile
#5

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
LOAD_mysql_function_query is calling mysql_function_query which then calls LOAD_mysql_function_query again and it keeps on going in a circle.
What Sorry but why?? i can't redefine a native function whit a macro

isn't the same as this??
pawn Код:
stock LOAD_mysql_function_query(connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:...)
{
    if(!LoadInfo[Loaded]) LoadInfo[Query]++;
   return mysql_function_query(connectionHandle, query, cache, callback, format, /*for pass the other elements i need to use the #emit function but i don't know how*/);
}

#if defined _ALS_mysql_function_query
    #undef mysql_function_query
#else
    #define _ALS_mysql_function_query
#endif
#define mysql_function_query LOAD_mysql_function_query
This type of redefinition don't go in an infinite recursion why with the macro should go
Reply


Messages In This Thread
Infinite Compile - by xX_Simon_Xx - 07.03.2013, 20:41
Re: Infinite Compile - by MP2 - 07.03.2013, 22:13
Re: Infinite Compile - by xX_Simon_Xx - 08.03.2013, 13:03
Re: Infinite Compile - by SuperViper - 08.03.2013, 14:19
Re: Infinite Compile - by xX_Simon_Xx - 08.03.2013, 18:17
Re: Infinite Compile - by xX_Simon_Xx - 09.03.2013, 13:22
Re: Infinite Compile - by xX_Simon_Xx - 11.03.2013, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)