This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[SLVD] Pawn Cell Size


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 05-02-2015 , 13:24   [SLVD] Pawn Cell Size
Reply With Quote #1

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 ?
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 05-04-2015 at 15:46.
Shooting King is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode