libflame  revision_anchor
Functions
FLASH_Obj_create_hier_copy_of_flat_check.c File Reference

(r)

Functions

FLA_Error FLASH_Obj_create_hier_copy_of_flat_check (FLA_Obj F, dim_t depth, dim_t *blocksizes, FLA_Obj *H)
 

Function Documentation

◆ FLASH_Obj_create_hier_copy_of_flat_check()

FLA_Error FLASH_Obj_create_hier_copy_of_flat_check ( FLA_Obj  F,
dim_t  depth,
dim_t blocksizes,
FLA_Obj H 
)

References FLA_Check_null_pointer().

Referenced by FLASH_Obj_create_hier_copy_of_flat().

14 {
15  FLA_Error e_val;
16 
17  e_val = FLA_Check_null_pointer( blocksizes );
18  FLA_Check_error_code( e_val );
19 
20  e_val = FLA_Check_null_pointer( H );
21  FLA_Check_error_code( e_val );
22 
23  // A value of depth < 0 should cause an error.
24 
25  // First depth entries in blocksize should be checked; values < 1 should cause error.
26 
27  return FLA_SUCCESS;
28 }
int FLA_Error
Definition: FLA_type_defs.h:47
FLA_Error FLA_Check_null_pointer(void *ptr)
Definition: FLA_Check.c:518