fix threads so that they at least start
allow error handling to work with threads replace heap_base by Yap_heap_base, according to Yap's convention for globals. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1192 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -357,7 +357,13 @@ Yap_Error(yap_error_number type, Term where, char *format,...)
|
||||
exit(1);
|
||||
}
|
||||
/* must do this here */
|
||||
if (type == FATAL_ERROR || Yap_HeapBase == NULL) {
|
||||
if (type == FATAL_ERROR
|
||||
#if USE_SYSTEM_MALLOC
|
||||
|| !Yap_heap_regs
|
||||
#else
|
||||
|| !Yap_HeapBase
|
||||
#endif
|
||||
) {
|
||||
if (format != NULL) {
|
||||
va_start (ap, format);
|
||||
/* now build the error string */
|
||||
|
||||
Reference in New Issue
Block a user