libflame  12600
Functions
FLASH_Obj_create_hier_copy_of_flat_check.c File Reference

(r12600)

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

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().

{
  FLA_Error e_val;

  e_val = FLA_Check_null_pointer( blocksizes );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_null_pointer( H );
  FLA_Check_error_code( e_val );

  // A value of depth < 0 should cause an error.

  // First depth entries in blocksize should be checked; values < 1 should cause error.

  return FLA_SUCCESS;
}