Skip to content

Instantly share code, notes, and snippets.

View whyrusleeping's full-sized avatar

Whyrusleeping whyrusleeping

  • Mana
  • The Metaverse
View GitHub Profile
@whyrusleeping
whyrusleeping / for shortcut
Created October 6, 2012 00:55 — forked from travisperson/for shortcut
My favorite Pre-processor hackery
#include <stdio.h>
#define to ; i <=
#define DO(range) for(int i = range; i++)
int main()
{
int arr[10];
DO(0 to 9)

##Control

This is our base class

	int x
	int y
	int width
	int height
	int max_height 		// defaults to height

int max_width // defaults to height