KiCad PCB EDA Suite
|
#include <wx/wx.h>
#include <cstdio>
#include "board.h"
#include "pcb_track.h"
#include <pcbexpr_evaluator.h>
#include <pcb_io/pcb_io_mgr.h>
#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>
#include <unordered_set>
#include <core/profile.h>
Go to the source code of this file.
Functions | |
bool | testEvalExpr (const std::string expr, LIBEVAL::VALUE expectedResult, bool expectError=false, BOARD_ITEM *itemA=nullptr, BOARD_ITEM *itemB=nullptr) |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 55 of file libeval_compiler_test.cpp.
References F_Cu, BOARD_CONNECTED_ITEM::GetNetClassName(), BOARD::GetNetInfo(), PROPERTY_MANAGER::Instance(), PROPERTY_MANAGER::Rebuild(), BOARD_ITEM::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), PCB_TRACK::SetWidth(), and testEvalExpr().
bool testEvalExpr | ( | const std::string | expr, |
LIBEVAL::VALUE | expectedResult, | ||
bool | expectError = false , |
||
BOARD_ITEM * | itemA = nullptr , |
||
BOARD_ITEM * | itemB = nullptr |
||
) |
Definition at line 16 of file libeval_compiler_test.cpp.
References LIBEVAL::COMPILER::Compile(), LIBEVAL::VALUE::EqualTo(), LIBEVAL::UCODE::Run(), and PCBEXPR_CONTEXT::SetItems().
Referenced by main().