view runtime/proghead.inc @ 68:3a169ebb3224

Change strategy for handling true and false to avoid some initialization order problems and improve performance. Add support for negative integer literals. Update samples to reflect true/false change.
author Mike Pavone <pavone@retrodev.com>
date Sat, 14 Jul 2012 16:14:01 -0700
parents 2a9c6eed0c70
children abc6f3d644a4
line wrap: on
line source

#include "object.h"
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>

object * main_module;

object * no_impl(uint32_t method_id, uint32_t num_args, object * self, va_list args)
{
	printf("method %d is not implemented on object %p\n", method_id, self);
	printf("main_module %p\n", main_module);
	exit(0);
	return NULL;
}
/*
obj_meta lambda_meta = {
	sizeof(closure), 
	{no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, 
	 no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl, no_impl}
};*/