File Coverage

lib/SPVM/Builder/src/spvm_allow.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 "spvm_allow.h"
5             #include "spvm_allocator.h"
6             #include "spvm_compiler.h"
7              
8 533           SPVM_ALLOW* SPVM_ALLOW_new(SPVM_COMPILER* compiler) {
9 533           SPVM_ALLOW* allow = SPVM_ALLOCATOR_alloc_memory_block_tmp(compiler->current_each_compile_allocator, sizeof(SPVM_ALLOW));
10            
11 533           return allow;
12             }