nimhcr

Source   Edit  

Types

HcrModuleInitializer = proc () {.nimcall.}
Source   Edit  
HcrProcGetter = proc (libHandle: pointer; procName: cstring): pointer {.nimcall.}
Source   Edit  

Procs

proc hcrAddEventHandler(isBefore: bool; cb: proc () {.nimcall.}) {.compilerproc,
    exportc, dynlib, ...raises: [KeyError], tags: [], forbids: [].}
Source   Edit  
proc hcrAddModule(module: cstring) {.compilerproc, exportc, dynlib, ...raises: [],
                                     tags: [], forbids: [].}
Source   Edit  
proc hcrGeneration(): int {.compilerproc, exportc, dynlib, ...raises: [], tags: [],
                            forbids: [].}
Source   Edit  
proc hcrGetGlobal(module: cstring; name: cstring): pointer {.compilerproc,
    exportc, dynlib, ...raises: [KeyError], tags: [], forbids: [].}
Source   Edit  
proc hcrGetProc(module: cstring; name: cstring): pointer {.compilerproc,
    exportc, dynlib, ...raises: [KeyError, OSError], tags: [], forbids: [].}
Source   Edit  
proc hcrGetThreadVar(module: cstring; name: cstring; size: int): pointer {.
    compilerproc, exportc, dynlib, ...raises: [], tags: [], forbids: [].}
The slot of the calling thread for the threadvar name of module, size bytes made zero on first use. Source   Edit  
proc hcrHasModuleChanged(moduleHash: string): bool {.compilerproc, exportc,
    dynlib, ...raises: [KeyError], tags: [], forbids: [].}
Before a reload, whether the module's library was rebuilt. In the afterCodeReload handlers, whether that reload loaded it: by then the library on disk is the loaded one. Source   Edit  
proc hcrInit(moduleList: ptr pointer; main, sys: cstring;
             datInit: HcrModuleInitializer; handle: pointer; gpa: HcrProcGetter) {.
    compilerproc, exportc, dynlib,
    ...raises: [KeyError, OSError, LibraryError, Exception], tags: [ReadDirEffect,
    ReadIOEffect, WriteIOEffect, WriteDirEffect, RootEffect], forbids: [].}
Source   Edit  
proc hcrMarkGlobals() {.compilerproc, exportc, dynlib, nimcall, ...gcsafe,
                        raises: [], tags: [RootEffect], forbids: [].}
Source   Edit  
proc hcrPerformCodeReload() {.compilerproc, exportc, dynlib, ...raises: [KeyError,
    Exception, OSError, LibraryError, KeyError, Exception], tags: [RootEffect,
    ReadDirEffect, ReadIOEffect, WriteIOEffect, WriteDirEffect], forbids: [].}
Source   Edit  
proc hcrRegisterGlobal(module: cstring; name: cstring; size: Natural;
                       gcMarker: HcrGcMarkerProc; outPtr: ptr pointer): bool {.
    compilerproc, exportc, dynlib, ...raises: [KeyError], tags: [], forbids: [].}
Source   Edit  
proc hcrRegisterProc(module: cstring; name: cstring; fn: pointer): pointer {.
    compilerproc, exportc, dynlib, ...raises: [KeyError, OSError], tags: [],
    forbids: [].}
Source   Edit  
proc hcrReloadNeeded(): bool {.compilerproc, exportc, dynlib,
                               ...raises: [KeyError], tags: [], forbids: [].}
Source   Edit