File Coverage

lib/SPVM/Builder/src/spvm_constant.c
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine n/a
pod n/a
total 3 3 100.0


line stmt bran cond sub pod time code
1             // Copyright (c) 2023 Yuki Kimoto
2             // MIT License
3              
4             #include
5              
6              
7             #include "spvm_compiler.h"
8             #include "spvm_constant.h"
9             #include "spvm_allocator.h"
10             #include "spvm_hash.h"
11             #include "spvm_type.h"
12              
13 1002055           SPVM_CONSTANT* SPVM_CONSTANT_new(SPVM_COMPILER* compiler) {
14 1002055           SPVM_CONSTANT* constant = SPVM_ALLOCATOR_alloc_memory_block_tmp(compiler->current_each_compile_allocator, sizeof(SPVM_CONSTANT));
15            
16 1002055           return constant;
17             }