helapordo 1.4.12
Loading...
Searching...
No Matches
turn_op.c File Reference
#include "turn_op.h"
Include dependency graph for turn_op.c:

Functions

OP_res turnOP (turnOption_OP op, turnOP_args *args, Koliseo *kls, Koliseo_Temp *t_kls)
 Takes a turnOption_OP and a pointer to a turnOP_args struct.
 

Function Documentation

◆ turnOP()

OP_res turnOP ( turnOption_OP op,
turnOP_args * args,
Koliseo * kls,
Koliseo_Temp * t_kls )

Takes a turnOption_OP and a pointer to a turnOP_args struct.

Logs a warning for any NULL field in the struct. Performs the defined turn operation, before returning an OP_res.

Parameters
opThe kind of operation to do.
argsStruct containing needed args for current operation. Can have some fields uninitialised, if not relevant to requested turnOP.
klsThe Koliseo used for allocations.
t_klsThe Koliseo_Temp used for temporary allocations.
Returns
An OP_res representing result of turn option operation.
See also
turnOP_args
turnOption_OP
OP_res