diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-05-28 01:56:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-05-28 01:56:13 -0400 |
| commit | 59c5470adeb99da30dfd9d45a6035ec0936b29f3 (patch) | |
| tree | 314e509827ba62e579fb4f62526b9953c158545c /utils.h | |
| parent | 1dd05d2d18f30f1ee921386f50cc1b63f32a09e2 (diff) | |
Tweak default visibility settings
Diffstat (limited to 'utils.h')
| -rw-r--r-- | utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,6 +20,10 @@ __expr; \ }) +#ifndef public +#define public __attribute__ ((visibility ("default"))) +#endif + #define new(t) require(calloc(1, sizeof(t)), "`new(" #t ")` allocation failure") #define checked_strdup(s) require(strdup(s), "`checked_strdup(" #s ")` allocation failure") #define grow(arr,n) require(realloc(arr,sizeof(arr[0])*(n)), "`grow(" #arr ", " #n ")` allocation failure") |
