Code:
// This is pawn code (amxmodx plugin)
new var;
1. What is the type and size of var ? Is it a Cell ?
2. What is the exact meaning of casting ? For what purposes are reinterpret cast and static cast are used ? Are there any more types of castings ?
3. In context of the following functions what does FP_STRINGEX (copy back string) mean ?
Code:
int MF_RegisterForward( const char *funcname, ForwardExecType exectype, ... );
int MF_RegisterSPForward( AMX *amx, int func, ... );
int MF_RegisterSPForwardByName( AMX *amx, const char *func, ... );
4.
Quote:
Originally Posted by moduleconfig.h
PHP Code:
#if !defined PAWN_CELL_SIZE
#define PAWN_CELL_SIZE 32 /* by default, use 32-bit cells */
#endif
#if PAWN_CELL_SIZE==16
typedef uint16_t ucell;
typedef int16_t cell;
#elif PAWN_CELL_SIZE==32
typedef uint32_t ucell;
typedef int32_t cell;
#define REAL float
#elif PAWN_CELL_SIZE==64
typedef uint64_t ucell;
typedef int64_t cell;
#define REAL double
#else
#error Unsupported cell size (PAWN_CELL_SIZE)
#endif
|
Does pawn cell size change ? And how is that useful ?
__________________