Freeciv21
Develop your civilization from humble roots to a global empire
layer_roads.cpp File Reference
#include "layer_roads.h"
#include "bitvector.h"
#include "extras.h"
#include "fc_types.h"
#include "layer.h"
#include "terrain.h"
#include "tilespec.h"
#include "unit.h"
#include <bitset>
+ Include dependency graph for layer_roads.cpp:

Go to the source code of this file.

Namespaces

 freeciv
 

Macros

#define INIT(vector, func)
 

Macro Definition Documentation

◆ INIT

#define INIT (   vector,
  func 
)
Value:
/* Make sure we have enough space */ \
terrain_type_iterate(terrain) \
{ \
/* Add an entry for this extra */ \
auto &data = vector[terrain_index(terrain)].emplace_back(); \
/* Initializes it */ \
initialize_corners(data, extra, tag, terrain); \
func(data, tag, terrain); \
} \
terrain_type_iterate_end;
Terrain_type_id terrain_index(const struct terrain *pterrain)
Return the terrain index.
Definition: terrain.cpp:110