0396532000-04-15Martin Nilsson // $Id: module.h,v 1.36 2000/04/14 23:36:31 nilsson Exp $
b1fca01996-11-12Per Hedbor #ifndef ROXEN_MODULE_H
d32cfe2000-03-28Martin Nilsson 
b1fca01996-11-12Per Hedbor #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 
c8eaf12000-03-06Martin Nilsson #define CACHE(seconds) ([mapping(string:mixed)]id->misc)->cacheable=min(([mapping(string:mixed)]id->misc)->cacheable,seconds) #define NOCACHE() ([mapping(string:mixed)]id->misc)->cacheable=0
00a4be1999-12-07Martin Nilsson #define TAGDOCUMENTATION mapping tagdocumentation(){return get_value_from_file(__FILE__,"tagdoc","#define manual\n");}
d32cfe2000-03-28Martin Nilsson  #define ROXEN_MAJOR_VERSION 2
0396532000-04-15Martin Nilsson #define ROXEN_MINOR_VERSION 1
d32cfe2000-03-28Martin Nilsson 
b1fca01996-11-12Per Hedbor #endif