Releases: rockcavera/nim-mdlldk
Releases · rockcavera/nim-mdlldk
v0.2.0
- Added the
winimpackage 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 inDllMainwhen the dll is unloaded;- Compile with
-d:mdlldkNoDllMainto 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
aliasForin templates generated withnim doc.
v0.1.0
First release.