Carp/examples/parse_me.h

34 lines
652 B
C
Raw Normal View History

// This is a comment
void boo();
char hoo();
// This is also a comment
int foo(int x);
float goo(double x, double y);
2018-02-27 12:47:03 +03:00
// some people use too much whitespace
float weird ( double x , double y ) ;
// Struct types
vector2 middle(vector2 p1, vector2 p2);
// Pointers are also useful to parse
void gah(int *x);
2018-02-27 13:00:39 +03:00
void dah(int *x, float* y);
char *blah(int *x, float* y);
vector2 *more(vector3* in);
2018-02-27 16:28:48 +03:00
GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share);
// TODO:
GLFWAPI void glfwPollEvents(void);
2018-03-06 15:47:53 +03:00
// C Macros
#define K_BLAH 12345
#define K_BLAX 0x123
#define K_GLAH 12345