Thread: Features.h
View Single Post
  #2  
Old 10-02-2008, 02:50 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by Rocker8956 View Post

I want to include database.h so some of the following are pulled from the database instead of hard coded

Code:
#define ZONE_AUTOSHUTDOWN_DELAY		5000
Maybe I am misunderstanding, but you want to replace this with a Rule ?

In that case, you could just add, e.g.

Code:
RULE_INT ( Zone, ZoneAutoShutdownDelay, 5000 )
to common/ruletypes.h, delete the #define ZONE_AUTOSHUTDOWN_DELAY and then just replace any references to ZONE_AUTOSHUTDOWN_DELAY with RuleI(Zone, ZoneAutoShutdownDelay), and you don't need to include database.h in features.h.
Reply With Quote