f5cb442000-02-16Per Hedbor // $Id: module.h,v 1.33 2000/02/16 07:07:16 per Exp $
b1fca01996-11-12Per Hedbor #ifndef ROXEN_MODULE_H #define ROXEN_MODULE_H
f5cb442000-02-16Per Hedbor #ifndef MODULE_CONSTANTS_H #include <module_constants.h> #endif
b1fca01996-11-12Per Hedbor // Fast but unreliable.
d826931998-01-17Henrik Grubbström (Grubba) #define QUERY(var) variables[ #var ][VAR_VALUE]
b1fca01996-11-12Per Hedbor  // Like query, but for global variables.
cb9aab1999-03-27Henrik Grubbström (Grubba) #ifdef IN_ROXEN
6458611999-03-27Henrik Grubbström (Grubba) #define GLOBVAR(x) variables[ #x ][VAR_VALUE]
cb9aab1999-03-27Henrik Grubbström (Grubba) #else /* !IN_ROXEN */
6458611999-03-27Henrik Grubbström (Grubba) #define GLOBVAR(x) roxen->variables[ #x ][VAR_VALUE]
cb9aab1999-03-27Henrik Grubbström (Grubba) #endif /* IN_ROXEN */
b1fca01996-11-12Per Hedbor 
7f8c681998-08-10Per Hedbor #define CACHE(seconds) id->misc->cacheable=min(id->misc->cacheable,seconds) #define NOCACHE() id->misc->cacheable=0
00a4be1999-12-07Martin Nilsson #define TAGDOCUMENTATION mapping tagdocumentation(){return get_value_from_file(__FILE__,"tagdoc","#define manual\n");}
b1fca01996-11-12Per Hedbor #endif