Chapter 9 Generation Reference Guide (GTL)


warning macro

The warning macro is used to output a warning during translation. It may be useful to display a message when an inconsistency is detected while applying the template on a particular object. Warnings do not stop generation, they do not appear in the generated file either. The content of the warning message is the evaluated simple-template, passed by parameter.

It appears in the Output window (located in the lower part of the main window) during generation, and is shown in the code from the Preview tab of the object, if at least one error has been encountered.

.warning <message>

Parameters

Parameter Type Description
<message> Simple template Warning message

Example:

.warning bidirectional associations between inner classes are not supported

 


Copyright (C) 2005. Sybase Inc. All rights reserved.