mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 07:44:45 -08:00
got old tests working (test.parsing.cpp and test.upfront.cpp)
This commit is contained in:
parent
f09bb99fdf
commit
0a5885495f
@ -20,6 +20,7 @@ GEN_NS_BEGIN
|
|||||||
#include "dependencies/string_ops.hpp"
|
#include "dependencies/string_ops.hpp"
|
||||||
#include "dependencies/printing.hpp"
|
#include "dependencies/printing.hpp"
|
||||||
#include "dependencies/containers.hpp"
|
#include "dependencies/containers.hpp"
|
||||||
|
#include "dependencies/hashing.hpp"
|
||||||
#include "dependencies/string.hpp"
|
#include "dependencies/string.hpp"
|
||||||
#include "dependencies/parsing.hpp"
|
#include "dependencies/parsing.hpp"
|
||||||
#include "dependencies/timing.hpp"
|
#include "dependencies/timing.hpp"
|
||||||
|
@ -229,7 +229,7 @@ Array<GenArrayRequest> GenArrayRequests;
|
|||||||
void gen__array_request( StrC type, StrC dep = {} )
|
void gen__array_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenArrayRequests = Array<GenArrayRequest>::init( Memory::GlobalAllocator );
|
GenArrayRequests = Array<GenArrayRequest>::init( GlobalAllocator );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
|
||||||
// Make sure we don't already have a request for the type.
|
// Make sure we don't already have a request for the type.
|
||||||
|
@ -143,7 +143,7 @@ Array<GenBufferRequest> GenBufferRequests;
|
|||||||
void gen__buffer_request( StrC type, StrC dep = {} )
|
void gen__buffer_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenBufferRequests = Array<GenBufferRequest>::init( Memory::GlobalAllocator );
|
GenBufferRequests = Array<GenBufferRequest>::init( GlobalAllocator );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
|
||||||
// Make sure we don't already have a request for the type.
|
// Make sure we don't already have a request for the type.
|
||||||
|
@ -292,7 +292,7 @@ Array<GenHashTableRequest> GenHashTableRequests;
|
|||||||
void gen__hashtable_request( StrC type, StrC dep = {} )
|
void gen__hashtable_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenHashTableRequests = Array<GenHashTableRequest>::init( Memory::GlobalAllocator );
|
GenHashTableRequests = Array<GenHashTableRequest>::init( GlobalAllocator );
|
||||||
|
|
||||||
gen_array( sw );
|
gen_array( sw );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
@ -109,7 +109,7 @@ Array<GenRingRequest> GenRingRequests;
|
|||||||
void gen__ring_request( StrC type, StrC dep = {} )
|
void gen__ring_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenRingRequests = Array<GenRingRequest>::init( Memory::GlobalAllocator );
|
GenRingRequests = Array<GenRingRequest>::init( GlobalAllocator );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
|
||||||
// Make sure we don't already have a request for the type.
|
// Make sure we don't already have a request for the type.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if GEN_TIME
|
#if GEN_TIME
|
||||||
#include "gen.hpp"
|
#include "gen.hpp"
|
||||||
|
|
||||||
@ -308,7 +310,7 @@ Array<GenArrayRequest> GenArrayRequests;
|
|||||||
void gen__array_request( StrC type, StrC dep = {} )
|
void gen__array_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenArrayRequests = Array<GenArrayRequest>::init( Memory::GlobalAllocator );
|
GenArrayRequests = Array<GenArrayRequest>::init( GlobalAllocator );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
|
||||||
// Make sure we don't already have a request for the type.
|
// Make sure we don't already have a request for the type.
|
||||||
|
@ -190,6 +190,7 @@ Code gen__buffer( StrC type, sw type_size )
|
|||||||
, free
|
, free
|
||||||
, get_header
|
, get_header
|
||||||
, num
|
, num
|
||||||
|
, pop
|
||||||
, wipe
|
, wipe
|
||||||
|
|
||||||
, op_type_ptr
|
, op_type_ptr
|
||||||
@ -212,7 +213,7 @@ Array<GenBufferRequest> GenBufferRequests;
|
|||||||
void gen__buffer_request( StrC type, StrC dep = {} )
|
void gen__buffer_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenBufferRequests = Array<GenBufferRequest>::init( Memory::GlobalAllocator );
|
GenBufferRequests = Array<GenBufferRequest>::init( GlobalAllocator );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
|
||||||
// Make sure we don't already have a request for the type.
|
// Make sure we don't already have a request for the type.
|
||||||
|
@ -419,7 +419,7 @@ Array<GenHashTableRequest> GenHashTableRequests;
|
|||||||
void gen__hashtable_request( StrC type, StrC dep = {} )
|
void gen__hashtable_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenHashTableRequests = Array<GenHashTableRequest>::init( Memory::GlobalAllocator );
|
GenHashTableRequests = Array<GenHashTableRequest>::init( GlobalAllocator );
|
||||||
|
|
||||||
gen_array( sw );
|
gen_array( sw );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
@ -163,7 +163,7 @@ Array<GenRingRequest> GenRingRequests;
|
|||||||
void gen__ring_request( StrC type, StrC dep = {} )
|
void gen__ring_request( StrC type, StrC dep = {} )
|
||||||
{
|
{
|
||||||
do_once_start
|
do_once_start
|
||||||
GenRingRequests = Array<GenRingRequest>::init( Memory::GlobalAllocator );
|
GenRingRequests = Array<GenRingRequest>::init( GlobalAllocator );
|
||||||
do_once_end
|
do_once_end
|
||||||
|
|
||||||
// Make sure we don't already have a request for the type.
|
// Make sure we don't already have a request for the type.
|
||||||
|
@ -287,7 +287,7 @@ u32 gen_sanity_upfront()
|
|||||||
// Using
|
// Using
|
||||||
{
|
{
|
||||||
CodeUsing reg = def_using( name(TestUsing), t_u8 );
|
CodeUsing reg = def_using( name(TestUsing), t_u8 );
|
||||||
CodeUsingNamespace nspace = def_using_namespace( name(TestNamespace) );
|
CodeUsing nspace = def_using_namespace( name(TestNamespace) );
|
||||||
|
|
||||||
gen_sanity_file.print(reg);
|
gen_sanity_file.print(reg);
|
||||||
gen_sanity_file.print(nspace);
|
gen_sanity_file.print(nspace);
|
||||||
|
@ -14,7 +14,7 @@ int gen_main()
|
|||||||
|
|
||||||
// check_sanity();
|
// check_sanity();
|
||||||
|
|
||||||
check_SOA();
|
checkSOA();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user