Skip to content

Commit

Permalink
prefer importCompilerProc
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jan 8, 2022
1 parent 7d841c4 commit 62bf97e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion compiler/wordrecg.nim
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type
wImmediate = "immediate", wConstructor = "constructor", wDestructor = "destructor",
wDelegator = "delegator", wOverride = "override", wImportCpp = "importcpp",
wCppNonPod = "cppNonPod",
wImportObjC = "importobjc", wImportCompilerProc = "importcompilerproc",
wImportObjC = "importobjc", wImportCompilerProc = "importCompilerProc",
wImportc = "importc", wImportJs = "importjs", wExportc = "exportc", wExportCpp = "exportcpp",
wExportNims = "exportnims",
wIncompleteStruct = "incompleteStruct", # deprecated
Expand Down
18 changes: 9 additions & 9 deletions lib/core/typeinfo.nim
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,19 @@ when not defined(js):
template `rawType=`(x: var Any, p: PNimType) =
x.rawTypePtr = cast[pointer](p)

proc genericAssign(dest, src: pointer, mt: PNimType) {.importcompilerproc.}
proc genericAssign(dest, src: pointer, mt: PNimType) {.importCompilerProc.}

when not defined(gcDestructors):
proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.importcompilerproc.}
proc incrSeq(seq: PGenSeq, elemSize, elemAlign: int): PGenSeq {.importcompilerproc.}
proc newObj(typ: PNimType, size: int): pointer {.importcompilerproc.}
proc newSeq(typ: PNimType, len: int): pointer {.importcompilerproc.}
proc objectInit(dest: pointer, typ: PNimType) {.importcompilerproc.}
proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.importCompilerProc.}
proc incrSeq(seq: PGenSeq, elemSize, elemAlign: int): PGenSeq {.importCompilerProc.}
proc newObj(typ: PNimType, size: int): pointer {.importCompilerProc.}
proc newSeq(typ: PNimType, len: int): pointer {.importCompilerProc.}
proc objectInit(dest: pointer, typ: PNimType) {.importCompilerProc.}
else:
proc nimNewObj(size, align: int): pointer {.importcompilerproc.}
proc newSeqPayload(cap, elemSize, elemAlign: int): pointer {.importcompilerproc.}
proc nimNewObj(size, align: int): pointer {.importCompilerProc.}
proc newSeqPayload(cap, elemSize, elemAlign: int): pointer {.importCompilerProc.}
proc prepareSeqAdd(len: int; p: pointer; addlen, elemSize, elemAlign: int): pointer {.
importcompilerproc.}
importCompilerProc.}

template `+!!`(a, b): untyped = cast[pointer](cast[ByteAddress](a) + b)

Expand Down

0 comments on commit 62bf97e

Please sign in to comment.