Skip to content

Instantly share code, notes, and snippets.

@jhmaster2000
Created May 24, 2022 06:58
Show Gist options
  • Save jhmaster2000/9192b3cebe6635f8e85b2acf662f8da8 to your computer and use it in GitHub Desktop.
Save jhmaster2000/9192b3cebe6635f8e85b2acf662f8da8 to your computer and use it in GitHub Desktop.
Basic C++ typedefs
#pragma once
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
typedef signed long long s64;
typedef float f32;
typedef double f64;
typedef volatile u8 vu8;
typedef volatile u16 vu16;
typedef volatile u32 vu32;
typedef volatile u64 vu64;
typedef volatile s8 vs8;
typedef volatile s16 vs16;
typedef volatile s32 vs32;
typedef volatile s64 vs64;
typedef volatile f32 vf32;
typedef volatile f64 vf64;
typedef const char* cstr;
typedef void (*funcPtr)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment