add lime.Lib.notImplemented
This commit is contained in:
23
lime/Lib.hx
Normal file
23
lime/Lib.hx
Normal 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");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user