You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## frees the memory allocated with ``allocShared``, ``allocShared0`` or
## ``reallocShared``. This procedure is dangerous! If one forgets to
## free the memory a leak occurs; if one tries to access freed
## memory (or just freeing it twice!) a core dump may happen
## or other memory may be corrupted.
procfreeShared*[T](p: ptr T) {.inline, benign.} =
## frees the memory allocated with ``createShared``, ``createSharedU`` or
## ``resizeShared``. This procedure is dangerous! If one forgets to
## free the memory a leak occurs; if one tries to access freed
## memory (or just freeing it twice!) a core dump may happen
## or other memory may be corrupted.
deallocShared(p)
The create procs are visible, the only apparent difference being the pragmas: {.noconv, rtl, tags: [], benign.} for allocs and {.inline, benign.} for creates.
The text was updated successfully, but these errors were encountered:
when run through nim doc on 0.19.2 will show both functions, but will only show the doc text for goodbye. This behavior can also be seen in the missing documentation for readAll in asyncdispatch
The other difference (which is the real reason here, from what I can tell) is that procs with generated docs have the body, while the others don't have it.
procfoo=## this will be visiblediscardprocbar## not visible
The
alloc
,alloc0
,allocShared
, ... procs that are defined here for 0.19 are missing from the documentation:Nim/lib/system.nim
Lines 1739 to 1851 in f6c5c63
The
create
procs are visible, the only apparent difference being the pragmas:{.noconv, rtl, tags: [], benign.}
for allocs and{.inline, benign.}
for creates.The text was updated successfully, but these errors were encountered: