Add extern "C" to all header files
This commit is contained in:
parent
76222d31d4
commit
6fc0b2987e
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
#include "aliases.h"
|
#include "aliases.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
#define NUMPARTS(...) \
|
#define NUMPARTS(...) \
|
||||||
(sizeof((const char *[]){"", __VA_ARGS__}) / sizeof(const char *) - 1)
|
(sizeof((const char *[]){"", __VA_ARGS__}) / sizeof(const char *) - 1)
|
||||||
|
|
||||||
@ -14,4 +18,8 @@
|
|||||||
void join_path(char *dst, u64 count, ...);
|
void join_path(char *dst, u64 count, ...);
|
||||||
void dirup(char *dst, u64 levels, const char *path);
|
void dirup(char *dst, u64 levels, const char *path);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
#endif // !PATH_UTILS_H
|
#endif // !PATH_UTILS_H
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
#include "aliases.h"
|
#include "aliases.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
typedef struct dstr String;
|
typedef struct dstr String;
|
||||||
|
|
||||||
String *wapp_dstr_with_capacity(u64 capacity);
|
String *wapp_dstr_with_capacity(u64 capacity);
|
||||||
@ -19,4 +23,8 @@ u64 wapp_dstr_length(const String *str);
|
|||||||
u64 wapp_dstr_capacity(const String *str);
|
u64 wapp_dstr_capacity(const String *str);
|
||||||
const char *wapp_dstr_to_cstr(const String *str);
|
const char *wapp_dstr_to_cstr(const String *str);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
#endif // !DSTR_H
|
#endif // !DSTR_H
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
#include "aliases.h"
|
#include "aliases.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
typedef struct growing_arena Arena;
|
typedef struct growing_arena Arena;
|
||||||
|
|
||||||
bool wapp_mem_arena_init(Arena **arena, u64 base_capacity);
|
bool wapp_mem_arena_init(Arena **arena, u64 base_capacity);
|
||||||
@ -12,4 +16,8 @@ void *wapp_mem_arena_alloc_aligned(Arena *arena, u64 size, u64 alignment);
|
|||||||
void wapp_mem_arena_clear(Arena *arena);
|
void wapp_mem_arena_clear(Arena *arena);
|
||||||
void wapp_mem_arena_free(Arena **arena);
|
void wapp_mem_arena_free(Arena **arena);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
#endif // !MEM_ARENA_H
|
#endif // !MEM_ARENA_H
|
||||||
|
@ -3,6 +3,14 @@
|
|||||||
|
|
||||||
#include "aliases.h"
|
#include "aliases.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
void *wapp_mem_util_align_forward(void *ptr, u64 alignment);
|
void *wapp_mem_util_align_forward(void *ptr, u64 alignment);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
#endif // !MEM_UTILS_H
|
#endif // !MEM_UTILS_H
|
||||||
|
Loading…
Reference in New Issue
Block a user