llvm-mos-sdk
api-internal.h
Go to the documentation of this file.
1 // Copyright 2024 LLVM-MOS Project
2 // Licensed under the Apache License, Version 2.0 with LLVM Exceptions.
3 // See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
4 // information.
5 
6 #include <stdint.h>
7 #include <string.h>
8 #include "neo/types.h"
9 
10 #ifndef _NEO_API_INTERNAL_H
11 #define _NEO_API_INTERNAL_H
12 
13 typedef struct neo_pstring neo_pstring_t;
14 
18 #define PASCALIZE_INPUT(FROM, TO) \
19  uint8_t FROM ## _len = strlen(FROM); \
20  char TO[FROM ## _len+1]; \
21  TO[0] = FROM ## _len; \
22  memcpy(TO + 1, FROM, FROM ## _len)
23 
27 void __neo_depascalize_output(char *to);
28 
29 #endif
types.h
string.h
to
char to
Definition: nesdoug.h:55
neo_pstring
Definition: types.h:15