pawndisasm: Add "no-checks" and "sleep" flags
#define AMX_FLAG_SLEEP 0x08 /* script uses the sleep instruction (possible re-entry or power-down mode) */ #define AMX_FLAG_NOCHECKS 0x10 /* no array bounds checking; no BREAK opcodes */
This commit is contained in:
parent
ed0fdd91ef
commit
b1fb2739cb
@ -487,6 +487,10 @@ int main(int argc,char *argv[])
|
||||
fprintf(fplist,"compact-encoding ");
|
||||
if ((amxhdr.flags & AMX_FLAG_DEBUG)!=0)
|
||||
fprintf(fplist,"debug-info ");
|
||||
if ((amxhdr.flags & AMX_FLAG_NOCHECKS)!=0)
|
||||
fprintf(fplist,"no-checks ");
|
||||
if ((amxhdr.flags & AMX_FLAG_SLEEP)!=0)
|
||||
fprintf(fplist,"sleep ");
|
||||
fprintf(fplist,"\n\n");
|
||||
/* load the code block */
|
||||
if ((code=malloc(codesize))==NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user