nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NOTICE: Update
[nit.git]
/
lib
/
mnit
/
mnit_app.nit
diff --git
a/lib/mnit/mnit_app.nit
b/lib/mnit/mnit_app.nit
index
79c1ad2
..
4ae8b89
100644
(file)
--- a/
lib/mnit/mnit_app.nit
+++ b/
lib/mnit/mnit_app.nit
@@
-18,7
+18,7
@@
module mnit_app
import ::app
module mnit_app
import ::app
-import mnit_display
+import mnit::display
# An App instance serves as base to every Mnit projects.
#
# An App instance serves as base to every Mnit projects.
#
@@
-30,10
+30,10
@@
redef class App
# Display to use by apps
# Is null if the display is not available or not yet ready
# Display to use by apps
# Is null if the display is not available or not yet ready
- var display: nullable D protected writable = null
+ var display: nullable D = null is protected writable
# Received quit order
# Received quit order
- var quit: Bool writable = false
+ var quit: Bool = false is writable
# App is visible? (vs minimized or in background)
fun visible: Bool is abstract
# App is visible? (vs minimized or in background)
fun visible: Bool is abstract
@@
-61,7
+61,12
@@
redef class App
end
# Internal method to generate inputs
end
# Internal method to generate inputs
- protected fun generate_input is abstract
+ protected fun generate_input
+ do
+ if "NIT_TESTING".environ == "true" then exit 0
+ print "Compiled without platform"
+ exit 1
+ end
# Main app loop
# Usually you want to redef frame_core instead of this
# Main app loop
# Usually you want to redef frame_core instead of this