Update StdLib - ringlibs/stdlib/stdlibcore.ring - IsMainSourceFile() - take in mind the better updates done to Ring object file and restoring the files list.
@@ -726,6 +726,12 @@ Func IsMainSourceFile
if len(sysargv) >= 2
if PrevFileName() = substr(sysargv[2],"ringo","ring")
return true
+ else
+ if len(ringvm_fileslist()) >= 1
+ if Prevfilename() = ringvm_fileslist()[1]
+ return True
+ ok
+ ok
ok
else # We are using Ring2EXE and we have executable code
if Prevfilename() = substr(ringvm_fileslist()[1],"ringo","ring")
