- fixed: The message for invalid class extensions did not pass the class name to the error function.

This commit is contained in:
Christoph Oelckers 2016-12-10 10:22:13 +01:00
parent 902a4b839c
commit a7c80ae858
2 changed files with 5 additions and 6 deletions

View file

@ -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.
**
** 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.
//
//
//==========================================================================

View file

@ -74,7 +74,7 @@ void ZCCCompiler::ProcessClass(ZCC_Class *cnode, PSymbolTreeNode *treenode)
}
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;
}
}