Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

config.h

Go to the documentation of this file.
00001 
00002 //
00003 //  Borland C++ 5.5, GNU C++ 3.0
00004 //  Compiler Backend Library
00005 //  $Id: config_8h-source.html,v 1.1 2002/07/18 14:58:45 cparpart Exp $
00006 //
00007 //  Copyright (c) 2002 SurakWare Corp.
00008 //
00010 #ifndef sw_cbl_config_h
00011 #define sw_cbl_config_h
00012 
00013 // NOTE THAT THIS FILE IS CREATED AUTOMATICALLY FROM
00014 // FILE config.h.in
00015 
00016 #ifdef __WIN32__
00017 # include 
00018 #endif
00019 
00020 namespace cbl {
00021 namespace config {
00022 
00024 inline const char *const api_version() {
00025     return "0.0.1";
00026 }
00027 
00029 inline unsigned api_version_hex() {
00030     return 0x1;
00031 }
00032 
00034 inline const char *const prefix() {
00035 #ifndef __WIN32__
00036     return "/opt/surakware";
00037 #else
00038     return extractFileName(argv[0]);
00039 #endif
00040 }
00041 
00047 extern const char *const lib_version();
00048 
00050 extern unsigned lib_version_hex();
00051 
00053 inline bool compatible_version(unsigned AMyAPI) {
00054     // only the patch version (major.minor.patch) may be changed)
00055     return (lib_version_hex() & 0xFFFF00) == AMyAPI;
00056 }
00057 
00058 } // namespace config
00059 } // namespace swl
00060 
00061 #endif

Generated on Sat Apr 6 19:07:25 2002 for Compiler Backend Library by doxygen1.2.14 written by , © 1997-2002