Skip to content

Instantly share code, notes, and snippets.

View miremrie's full-sized avatar

miremrie miremrie

View GitHub Profile
@miremrie
miremrie / my_macros.h
Created March 27, 2026 20:04
Godot macros
#pragma once
// PROP_INLINE macros are used in the class declarations to declare the member, getters and setters
// PROP_BIND macros are used in the _bind_methods
// For PROP_BIND macros to work, you must do a #define CURR_CLASS MyClass before calling them.
// Don't forget to #undef CURR_CLASS at the end.
// NODE RESOLVE macros get the node from the serialized node path. I usually do this on _ready.
#define STR_HLP(s) #s
#define STR(s) STR_HLP(s)
#define COMB_HLP(a,b) a ## b