Crossfire Server, Trunk
FormulaeWriter.cpp File Reference
#include "FormulaeWriter.h"
#include "Utils.h"
+ Include dependency graph for FormulaeWriter.cpp:

Go to the source code of this file.


#define DO(v, s)   { if (recipe->v) { stringbuffer_append_printf(buf, s "\n", recipe->v); } }


static void writeRecipe (const recipe *recipe, StringBuffer *buf)

Macro Definition Documentation

◆ DO

#define DO (   v,
)    { if (recipe->v) { stringbuffer_append_printf(buf, s "\n", recipe->v); } }

Definition at line 16 of file FormulaeWriter.cpp.

Function Documentation

◆ writeRecipe()

static void writeRecipe ( const recipe recipe,
StringBuffer buf 

Definition at line 18 of file FormulaeWriter.cpp.

References recipe::arch_name, recipe::arch_names, buf, DO, recipe::ingred, recipe::next, stringbuffer_append_printf(), stringbuffer_append_string(), recipe::title, recipe::tool, recipe::tool_size, Utils::writeLinkedChar(), and Utils::writeStringArray().

Referenced by FormulaeWriter::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: