Quote:
you dont need to set it to a value.
|
actually I do need to set it to a value, normally 0 or 1. if it is not defined at all by an admin using the plugin it gets set to the default value by the plugin. therefore it is always defined.
Code:
#include <amxmodx>
#include "plugin.cfg"
#if !defined (BLARGH) // admin didn't set any value in plugin.cfg, we'll use the default
#define BLARGH 1
#endif
#if defined BLARGH // This doesn't work since it is always true because it is always defined
// #if BLARGH // <<-- would be right but amxx sc is broken
public plugin_init()
{
register_plugin("Test Plugin","0.2","blargh set to 1")
}
#else
public plugin_init()
{
register_plugin("Test Plugin","0.2","blargh set to 0")
}
#endif
I'm not looking for a workaround, I was wondering why this was taken out of the small compiler. Using your workaround I would need twice the number of defines.