Can't portably pass filesystem paths as command-line macros to C.

Generate a header file instead and include that.
This commit is contained in:
Andrew Johnson
2009-07-28 21:08:37 +00:00
parent ba11940aad
commit d5bffdb13d
3 changed files with 39 additions and 8 deletions
+5 -5
View File
@@ -70,16 +70,16 @@
#include "asDbLib.h"
#include "iocInit.h"
#include "iocsh.h"
#include "epicsInstallDir.h"
extern "C" int softIoc_registerRecordDeviceDriver(struct dbBase *pdbbase);
#define QUOTE(x) #x
#define DBD_FILE(top) QUOTE(top) "/dbd/softIoc.dbd"
#define EXIT_FILE(top) QUOTE(top) "/db/softIocExit.db"
#define DBD_FILE EPICS_BASE "/dbd/softIoc.dbd"
#define EXIT_FILE EPICS_BASE "/db/softIocExit.db"
const char *arg0;
const char *base_dbd = DBD_FILE(EPICS_BASE);
const char *exit_db = EXIT_FILE(EPICS_BASE);
const char *base_dbd = DBD_FILE;
const char *exit_db = EXIT_FILE;
static void exitSubroutine(subRecord *precord) {