mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Require @(init) and @(fini) to be proc "contextless" ()
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#+private
|
||||
package terminal
|
||||
|
||||
import "base:runtime"
|
||||
import "core:os"
|
||||
import "core:strings"
|
||||
|
||||
@@ -68,9 +69,11 @@ get_environment_color :: proc() -> Color_Depth {
|
||||
}
|
||||
|
||||
@(init)
|
||||
init_terminal :: proc() {
|
||||
init_terminal :: proc "contextless" () {
|
||||
_init_terminal()
|
||||
|
||||
context = runtime.default_context()
|
||||
|
||||
// We respect `NO_COLOR` specifically as a color-disabler but not as a
|
||||
// blanket ban on any terminal manipulation codes, hence why this comes
|
||||
// after `_init_terminal` which will allow Windows to enable Virtual
|
||||
@@ -81,6 +84,6 @@ init_terminal :: proc() {
|
||||
}
|
||||
|
||||
@(fini)
|
||||
fini_terminal :: proc() {
|
||||
fini_terminal :: proc "contextless" () {
|
||||
_fini_terminal()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user