# \_\_API\_SCILAB\_UNSAFE\_\_ makes binding generation hard

**URL:** <https://scilab.discourse.group/t/api-scilab-unsafe-makes-binding-generation-hard/844>\
**Category:** Development\
**Created:** [February 28, 2025, 7:28am UTC](https://scilab.discourse.group/t/api-scilab-unsafe-makes-binding-generation-hard/844 "2025-02-28T07:28:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvanag](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@vvanag](https://scilab.discourse.group/u/vvanag)\
**Post date:** [February 28, 2025, 7:28am UTC](https://scilab.discourse.group/t/api-scilab-unsafe-makes-binding-generation-hard/844/1 "2025-02-28T07:28:14Z")

</div>

This code disallows a binding generator to include both options

> #ifdef **API\_SCILAB\_UNSAFE**  
> #define API\_PROTO(x) scilab\_internal\_##x##_unsafe  
> #define API\_EXPORT\_PROTO(x) scilab_##x  
> #else  
> #define API\_PROTO(x) scilab\_internal\_##x##_safe  
> #define API\_EXPORT\_PROTO(x) scilab_##x  
> #endif

This decision should be left to the caller of the generated bindings and not imposed on the generator
