add lime.Lib.notImplemented

This commit is contained in:
James Gray
2015-12-29 20:39:38 -06:00
parent 15727db9d8
commit 2cbcebe810

23
lime/Lib.hx Normal file
View File

@@ -0,0 +1,23 @@
package lime;
class Lib {
@:noCompletion private static var __sentWarnings = new Map<String, Bool> ();
public static function notImplemented (api:String):Void {
if (!__sentWarnings.exists (api)) {
__sentWarnings.set (api, true);
trace ("Warning: " + api + " is not implemented");
}
}
}