Nim/lib/genode/env.nim
ringabout 1dab8ba334
move threads out of system (#20674)
* move syslocks first

* progress

* clean up

* go on

* clean up

* clean up

* add imports syslocks

* remove documentation

* public deallocOsPages

* fixes genode

* fixes more

* fixes boehmGC

* cover more cases

* fixes cyclic deps

* fixes genode

* cleanup

* unpublic fields

* cleanup

* clean up
2022-10-29 18:11:40 +02:00

29 lines
831 B
Nim

#
#
# Nim's Runtime Library
# (c) Copyright 2018 Emery Hemingway
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
#
# This file contains the minimum required definitions
# for interacting with the initial Genode environment.
# It is reserved for use only within the standard
# library. See `componentConstructHook` in the system
# module for accessing the Genode environment after the
# standard library has finished initializating.
#
when not defined(genode):
{.error: "Genode only include".}
type
GenodeEnvObj* {.importcpp: "Genode::Env", header: "<base/env.h>", pure.} = object
GenodeEnvPtr* = ptr GenodeEnvObj
const runtimeEnvSym* = "nim_runtime_env"
when not defined(nimscript):
var runtimeEnv* {.importcpp: runtimeEnvSym.}: GenodeEnvPtr