Add lib name to config header

This commit is contained in:
King_DuckZ 2021-02-10 23:14:13 +01:00
parent 4c65807d93
commit 719a57d3e8
2 changed files with 3 additions and 0 deletions

View file

@ -39,6 +39,7 @@ endif
conf.set('POINTER_SIZE', ptr_size)
conf.set('FUNC_POINTER_SIZE', func_ptr_size)
conf.set('WRENPP_NAME', meson.project_name())
project_config_file = configure_file(
input: 'src/config.h.in',

View file

@ -20,6 +20,8 @@
#define ASM_PTR_SIZE @POINTER_SIZE@
#define ASM_FUNC_PTR_SIZE @FUNC_POINTER_SIZE@
#define WRENPP_NAME "@WRENPP_NAME@"
#if defined(__cplusplus)
static_assert(sizeof(void*) == ASM_PTR_SIZE, "Build system reports an unexpected pointer size, please ensure assembly code is correct");