Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

plugin oncreate function

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

plugin oncreate function

Hi

with the plugin system , i need a callback function that i can put some needed things before Ziron will start compilation.

http://www.freewebs.com/ogremagic/index.htm

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

If i understand correctly, you can just use the InitPlugin event.

function InitPlugin(pointer pGetF) {
	Ziron_LoadAll(pGetF); //use framework utility function to load all

	//add some consts
	Ziron_Execute('const ABCD = 1000; const EFGH = 2000; const IJKL = 3000;');

	//register our keyword
	Ziron_RegisterKeyword('Dim', @event_Dim);
	
	return strLoaded;
}
Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

Exactly what i need , thank you.

http://www.freewebs.com/ogremagic/index.htm