ddhoward
03-01-2016, 01:43
Wondering if there's a way I can tell if, from within my include, #pragma newdecls required or #pragma newdecls optional had been used in the other programmer's sp (which is including my include.)
I'm hoping to be able to do something like this:
//someone_elses_plugin.sp
#pragma newdecls required;
#include <my_include>
//rest of plugin's code
//my_include.inc
#if newdecls required
#pragma newdecls optional;
#include <some other include that isn't new syntax yet>
#pragma newdecls required;
#else
#include <some other include that isn't new syntax yet>
#endif
//insert rest of include's code here
I'm hoping to be able to do something like this:
//someone_elses_plugin.sp
#pragma newdecls required;
#include <my_include>
//rest of plugin's code
//my_include.inc
#if newdecls required
#pragma newdecls optional;
#include <some other include that isn't new syntax yet>
#pragma newdecls required;
#else
#include <some other include that isn't new syntax yet>
#endif
//insert rest of include's code here