#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "plugin.h"
#include "cbmachine.h"
#include "macros.h"

cbmachine ww;

int _OT (mmachine m)
{
	int mi;
	mi = MTOI (MMpull (m));
	MMpush (m, ITOM (mi+1));
	return 0;
}

#define OT_PKG	1
char* ot_name[OT_PKG]=
{
    "_OT"
};

int (*ot_fun[OT_PKG])(mmachine m)=
{
	_OT
};

int ot_narg[OT_PKG]=
{
	1
};

char* ot_type[OT_PKG]=
{
	"fun [I] I"
};

int ScolLoadPlugin (mmachine m, cbmachine w)
{
    int k = 0;
    ww = w;

	MMechostr (0, "OtherTest Library LOADING !\n");
	
    k = PKhardpak(m, "OTHERTESTengine", OT_PKG, ot_name, ot_fun, ot_narg, ot_type);

    return k;
}
