1 // SPDX-License-Identifier: MIT 2 // 3 // Copyright 2024 Advanced Micro Devices, Inc. 4 5 #include "dml2_debug.h" 6 dml2_printf(const char * format,...)7int dml2_printf(const char *format, ...) 8 { 9 #ifdef _DEBUG 10 #ifdef _DEBUG_PRINTS 11 int result; 12 va_list args; 13 va_start(args, format); 14 15 result = vprintf(format, args); 16 17 va_end(args); 18 19 return result; 20 #else 21 return 0; 22 #endif 23 #else 24 return 0; 25 #endif 26 } 27 dml2_assert(int condition)28void dml2_assert(int condition) 29 { 30 //ASSERT(condition); 31 } 32