- /* Not perfect but avoids crashes. There is potential for wierd
- behavior here. */
- if (gc_in_progress)
- {
- mswindows_output_console_string ("Window procedure called during GC???????\n", 41);
- /* Yes, this assert always triggers in a --debug XEmacs. But
- --debug=no is default in the stable branches.
- #### How about patch in <200106081225.IAA31075@gwyn.tux.org>? */
- assert (!gc_in_progress);
- goto defproc;
- }
+ /* If you hit this, rewrite the offending API call to occur after GC,
+ using register_post_gc_action(). */
+ assert (!gc_in_progress);