I tried to make a simple one liner singleton macro
#macro IMGUI instance_exists(imgui) ? instance_find(imgui,0) : instance_create_layer(0,0,"Instances",imgui)
But for some reason this doesn't work. Do ternary operations not work for macros or does this have something to do with the instance...