File Coverage

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


line stmt bran cond sub pod time code
1             // Copyright (c) 2023 Yuki Kimoto
2             // MIT License
3              
4             #include
5             #include
6              
7             #include "spvm_class_var.h"
8             #include "spvm_compiler.h"
9             #include "spvm_allocator.h"
10              
11 8179           SPVM_CLASS_VAR* SPVM_CLASS_VAR_new(SPVM_COMPILER* compiler) {
12             (void)compiler;
13            
14 8179           return SPVM_ALLOCATOR_alloc_memory_block_permanent(compiler->current_each_compile_allocator, sizeof(SPVM_CLASS_VAR));
15             }
16