Branch: Tag:

2000-03-28

2000-03-28 15:00:46 by Martin Nilsson <mani@lysator.liu.se>

Added version defines to ease implementation of modules for both 1.3 and 2.0.

Rev: server/etc/include/module.h:1.35

1: - // $Id: module.h,v 1.34 2000/03/06 18:56:21 nilsson Exp $ + // $Id: module.h,v 1.35 2000/03/28 15:00:46 nilsson Exp $   #ifndef ROXEN_MODULE_H -  +    #define ROXEN_MODULE_H   #ifndef MODULE_CONSTANTS_H   #include <module_constants.h>
17:   #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   #define TAGDOCUMENTATION mapping tagdocumentation(){return get_value_from_file(__FILE__,"tagdoc","#define manual\n");} +  + #define ROXEN_MAJOR_VERSION 2 + #define ROXEN_MINOR_VERSION 0 +    #endif