diff options
author | mwturvey <michael.w.turvey@intel.com> | 2017-03-16 10:32:18 -0700 |
---|---|---|
committer | mwturvey <michael.w.turvey@intel.com> | 2017-03-16 10:32:18 -0700 |
commit | 27c9edd889c746e818dc3aa55971d9cd6d8595a7 (patch) | |
tree | 7b38a03436bf11dfab7b0c3145ca9f1560374115 /src | |
parent | fa0f4825937ed93163bb2cd165c001d7444d8928 (diff) | |
download | libsurvive-27c9edd889c746e818dc3aa55971d9cd6d8595a7.tar.gz libsurvive-27c9edd889c746e818dc3aa55971d9cd6d8595a7.tar.bz2 |
Manual registration on Windows
Diffstat (limited to 'src')
-rwxr-xr-x | src/survive.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/survive.c b/src/survive.c index c2b2940..d7aa691 100755 --- a/src/survive.c +++ b/src/survive.c @@ -47,17 +47,17 @@ SurviveContext * survive_init( int headless ) did_runtime_symnum = 1; } #endif -//#ifdef MANUAL_REGISTRATION -// // note: this manual registration is currently only in use on builds using Visual Studio. -// -//#define MANUAL_DRIVER_REGISTRATION(func) int func( SurviveObject * so, PoserData * pd ); RegisterDriver( #func, &func); -// -// MANUAL_DRIVER_REGISTRATION(PoserCharlesSlow) -// MANUAL_DRIVER_REGISTRATION(PoserDaveOrtho) -// MANUAL_DRIVER_REGISTRATION(PoserDummy) -// MANUAL_DRIVER_REGISTRATION(DriverRegHTCVive) -// -//#endif +#ifdef MANUAL_REGISTRATION + // note: this manual registration is currently only in use on builds using Visual Studio. + +#define MANUAL_DRIVER_REGISTRATION(func) int func( SurviveObject * so, PoserData * pd ); RegisterDriver( #func, &func); + + MANUAL_DRIVER_REGISTRATION(PoserCharlesSlow) + MANUAL_DRIVER_REGISTRATION(PoserDaveOrtho) + MANUAL_DRIVER_REGISTRATION(PoserDummy) + MANUAL_DRIVER_REGISTRATION(DriverRegHTCVive) + +#endif int r = 0; int i = 0; |