llvm-mos-sdk
Macros | Typedefs
api-internal.h File Reference
#include <stdint.h>
#include <string.h>
#include "neo/types.h"
Include dependency graph for api-internal.h:

Go to the source code of this file.

Macros

#define _NEO_API_INTERNAL_H
 
#define PASCALIZE_INPUT(FROM, TO)
 Given an input C-format string FROM, provide a Pascal-format string FROM_p using VLAs. More...
 

Typedefs

typedef struct neo_pstring neo_pstring_t
 

Macro Definition Documentation

◆ _NEO_API_INTERNAL_H

#define _NEO_API_INTERNAL_H

◆ PASCALIZE_INPUT

#define PASCALIZE_INPUT (   FROM,
  TO 
)
Value:
uint8_t FROM ## _len = strlen(FROM); \
char TO[FROM ## _len+1]; \
TO[0] = FROM ## _len; \
memcpy(TO + 1, FROM, FROM ## _len)

Given an input C-format string FROM, provide a Pascal-format string FROM_p using VLAs.

Typedef Documentation

◆ neo_pstring_t

typedef struct neo_pstring neo_pstring_t
strlen
size_t strlen(const char *s)
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
FROM
WHETHER IN AN ACTION OF TORT OR ARISING FROM
Definition: LICENSE:24