mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 23:21:41 +00:00
- fixed: The message for invalid class extensions did not pass the class name to the error function.
This commit is contained in:
parent
902a4b839c
commit
a7c80ae858
2 changed files with 5 additions and 6 deletions
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
** thingdef_expression.cpp
|
** codegen.cpp
|
||||||
**
|
**
|
||||||
** Expression evaluation
|
** Compiler backend / code generation for ZScript and DECORATE
|
||||||
**
|
**
|
||||||
**---------------------------------------------------------------------------
|
**---------------------------------------------------------------------------
|
||||||
** Copyright 2008 Christoph Oelckers
|
** Copyright 2008-2016 Christoph Oelckers
|
||||||
** All rights reserved.
|
** All rights reserved.
|
||||||
**
|
**
|
||||||
** Redistribution and use in source and binary forms, with or without
|
** Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -6586,8 +6586,7 @@ ExpEmit FxStructMember::Emit(VMFunctionBuilder *build)
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
// not really needed at the moment but may become useful with meta properties
|
//
|
||||||
// and some other class-specific extensions.
|
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ void ZCCCompiler::ProcessClass(ZCC_Class *cnode, PSymbolTreeNode *treenode)
|
||||||
}
|
}
|
||||||
if (cls == nullptr)
|
if (cls == nullptr)
|
||||||
{
|
{
|
||||||
Error(cnode, "Class %s cannot be found in the current translation unit.");
|
Error(cnode, "Class %s cannot be found in the current translation unit.", FName(cnode->NodeName).GetChars());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue