Skip to content

Types and Macros

Purpose

Type and macro headers provide small helper macros and common type aliases.

Headers

C:

c
#include <pl/c/Macro.h>
#include <pl/c/Types.h>

C++:

cpp
#include <pl/cpp/Types.hpp>

VA_EXPAND

c
#define VA_EXPAND(...) __VA_ARGS__

Expands variadic macro arguments.

PLAPI

Marks a function as part of the public native interface.

c
PLAPI void MyExportedFunction(void);

PLCAPI

Declares a public C-style function.

c
PLCAPI void MyCFunction(void);

Base Type Aliases

AliasEquivalent type
ushortunsigned short
uintunsigned int
ulongunsigned long
llonglong long
ullongunsigned long long
ucharunsigned char
scharsigned char
byteuchar
ldoublelong double
int64long long
int32int
int16short
int8char
uint64unsigned long long
uint32unsigned int
uint16unsigned short
uint8unsigned char

Notes

  • Prefer pl/c/* or pl/cpp/* in new code.