Skip to content

Instantly share code, notes, and snippets.

@antonijn
Last active December 25, 2015 07:19
Show Gist options
  • Select an option

  • Save antonijn/6938442 to your computer and use it in GitHub Desktop.

Select an option

Save antonijn/6938442 to your computer and use it in GitHub Desktop.
Boh intermediate compiler generated code :3
#ifndef HEY_HI_CLASS_H
#define HEY_HI_CLASS_H
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
struct c_hey_p_hi_p_Class;
extern void c_hey_p_hi_p_Class_m_this(struct c_hey_p_hi_p_Class * self);
extern void c_hey_p_hi_p_Class_m_blah(struct c_hey_p_hi_p_Class * self, int32_t p_h);
extern void c_hey_p_hi_p_Class_m_main(void);
extern int32_t c_hey_p_hi_p_Class_sf_ajwidpajdp;
struct vtable_c_hey_p_hi_p_Class
{
void (*c_hey_p_hi_p_Class_m_blah)(struct c_hey_p_hi_p_Class * self, int32_t p_h);
}
extern const instance_vtable_c_hey_p_hi_p_Class;
struct c_hey_p_hi_p_Class
{
struct vtable_c_hey_p_hi_p_Class * vtable;
int32_t f_asdfghjkl;
};
#endif
/*
package hey.hi;
import boh.lang;
import boh.lang.lala;
public class Class
{
public static int ajwidpajdp;
public int asdfghjkl;
public this()
{
}
public virtual void blah(int h)
{
}
public static void main()
{
if (4 == 4)
{
Class c = new Class();
}
}
}
*/
@Gallefray
Copy link
Copy Markdown

Line 21 needs to be a #endif or #elseifdef

@antonijn
Copy link
Copy Markdown
Author

elseifdef doesn't exist :P

It'd be #elif defined(...) :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment