diff options
author | cnlohr <lohr85@gmail.com> | 2018-03-10 18:10:43 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-03-10 18:10:43 -0500 |
commit | c687e3ea63a5d974fd35feb07fe7fb87d4375e6a (patch) | |
tree | 6011fe431de4393c9212b4d5db78759080d65509 /include/libsurvive/survive.h | |
parent | b0856a49eb1bb693fa7bb2e1a090a1420b85a95e (diff) | |
parent | 78507e78bc7ff8aaffbe24642cf7b7a689b419c6 (diff) | |
download | libsurvive-c687e3ea63a5d974fd35feb07fe7fb87d4375e6a.tar.gz libsurvive-c687e3ea63a5d974fd35feb07fe7fb87d4375e6a.tar.bz2 |
Merge branch 'master' of https://github.com/cnlohr/libsurvive
Diffstat (limited to 'include/libsurvive/survive.h')
-rw-r--r-- | include/libsurvive/survive.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h index 30f5817..d9b5f08 100644 --- a/include/libsurvive/survive.h +++ b/include/libsurvive/survive.h @@ -156,7 +156,15 @@ struct SurviveContext }; -SurviveContext * survive_init( int headless ); +SurviveContext * survive_init_internal( int headless ); + +// Baked in size of FLT to verify users of the library have the correct setting. +void survive_verify_FLT_size(uint32_t user_size); + +static inline SurviveContext * survive_init( int headless ) { + survive_verify_FLT_size(sizeof(FLT)); + return survive_init_internal( headless ); +} //For any of these, you may pass in 0 for the function pointer to use default behavior. //In general unless you are doing wacky things like recording or playing back data, you won't need to use this. |