procs_js.odin 330 B

123456789101112131415
  1. #+build js
  2. package runtime
  3. init_default_context_for_js: Context
  4. @(init, private="file")
  5. init_default_context :: proc "contextless" () {
  6. __init_context(&init_default_context_for_js)
  7. }
  8. @(export)
  9. @(link_name="default_context_ptr")
  10. default_context_ptr :: proc "contextless" () -> ^Context {
  11. return &init_default_context_for_js
  12. }