mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
Added a warning message if attempting to extract an empty cell,
so that it is not so mysterious as to why no output was generated.
This commit is contained in:
@@ -379,6 +379,13 @@ ExtAll(rootUse)
|
|||||||
|
|
||||||
extDefListFunc(rootUse, &defList);
|
extDefListFunc(rootUse, &defList);
|
||||||
|
|
||||||
|
/* Sanity check---print wrning if there is nothing to extract */
|
||||||
|
if (defList == (LinkedDef *)NULL)
|
||||||
|
{
|
||||||
|
TxError("Warning: There is nothing here to extract.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Now reverse the list onto a stack such that the bottommost cell */
|
/* Now reverse the list onto a stack such that the bottommost cell */
|
||||||
/* is the first to be extracted, and so forth back up to the top. */
|
/* is the first to be extracted, and so forth back up to the top. */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user