diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-12-04 17:18:44 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-12-04 17:18:44 +0100 |
commit | c71444ea301f0968476ea5bf1b8912b0b65308d7 (patch) | |
tree | 75888e49bb70239e7a43e9b4a6d5a6e9861bbcb9 | |
parent | c3e468b8b1d8c9cea4a4a130842eee3bfdd3f207 (diff) |
types: ucv_resource_create(): rename `typename` parameter to `type`
Since `typename` is a reserved word in C++ avoid using it to allow
successful compilation with a C++ compiler.
Fixes: #248
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | include/ucode/types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ucode/types.h b/include/ucode/types.h index 85c3eb8..f149b98 100644 --- a/include/ucode/types.h +++ b/include/ucode/types.h @@ -433,11 +433,11 @@ void *ucv_resource_data(uc_value_t *uv, const char *); void **ucv_resource_dataptr(uc_value_t *, const char *); static inline uc_value_t * -ucv_resource_create(uc_vm_t *vm, const char *typename, void *value) +ucv_resource_create(uc_vm_t *vm, const char *type, void *value) { uc_resource_type_t *t = NULL; - if (typename && (t = ucv_resource_type_lookup(vm, typename)) == NULL) + if (type && (t = ucv_resource_type_lookup(vm, type)) == NULL) return NULL; return ucv_resource_new(t, value); |