Releases: rockcavera/nim-mdlldk
Releases · rockcavera/nim-mdlldk
v0.2.0
- Added the
winim
package as a dependency; - Added compilation tips and errors;
- Added custom
DllMain()
; NimMain()
is no longer called inDllMain()
, as it calls WINAPI functions that should not be called inDllMain()
;GC_fullCollect()
andNimDestroyGlobals()
are called inDllMain
when the dll is unloaded;- Compile with
-d:mdlldkNoDllMain
to add your customDllMain()
; NimMain()
is called fromLoadDll()
and from all procedures added withnewProcToExport()
,newProcToExportW()
andnewProcToExportA()
if not already called;- The procedures
mMajor()
,mMinor()
,mBeta()
,mUnicode()
,mMaxBytes()
,mKeepLoaded()
,mMainWindowHandle()
,mRawVersion()
,mToCStringAndCopy()
andmToWideCStringAndCopy()
are now independent of the use of theaddLoadProc()
template; - Added the
mInitialized()
procedure. - The
addAliasFor()
compile-time procedure is no longer exportable; - Added the
addAliasFor()
template; - Procedures added with
newProcToExport()
now call a procedure with the abstraction layer instead of adding abstraction code in every added procedure. However, the compiler can optimize and do inline. - All documentation comments at the top of the body of calls to
addLoadProc()
,addUnloadProc()
,newProcToExport()
,newProcToExportW()
,newProcToExportA()
andaddAliasFor()
are passed to the documentation generated by Nim withnim doc
. - The minimum required Nim compiler is now version 2.0.0, due to the annotation with pragma
aliasFor
in templates generated withnim doc
.
v0.1.0
First release.