Skip to content

stroncium/hx-signals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classes are generated by haxe-neko script in 'gen' directory.
The source is 'Signal.prehx' in 'gen' - haxe Template.

To compile script and run it, enter:
$ cd gen
$ sh gen.sh

Final classes will be generated in 'signals' directory.



Tests in 'tests'.
$ cd test
$ haxe test-swf.hxml
$ haxe test-neko.hxml
$ flashplayer test.swf
$ neko test.n


in Signal.prehx
 - ::name:: is replaced by class name
 - ::types:: is replaced by "<T1, T2, T3>" style string
 - ::func:: is replaced by "T1->T2->T3->Void" style function type
 - ::dispatch_args:: is replaced by "a1:T1, a2:T2, a3:T3" style string for dispatch function
 - ::call_args:: is replaced by "a1, a2, a3" style string for calling listeners in dispatch


/*           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 *                    Version 2, December 2004
 *
 * Copyright (C) 2004 Sam Hocevar 14 rue de Plaisance, 75014 Paris, France
 * Everyone is permitted to copy and distribute verbatim or modified
 * copies of this license document, and changing it is allowed as long
 * as the name is changed.
 *
 *            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 *   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 *
 *  0. You just DO WHAT THE FUCK YOU WANT TO.
 * */

About

Signals for HaXe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published