AbleButtons V0.4.0
Lightweight button library for Arduino.
 
Loading...
Searching...
No Matches
Utils.cpp File Reference

TestAbleButton utilities for producing assert failures. More...

#include "Utils.h"

Go to the source code of this file.

Functions

void assertSerial (const char *func, const char *file, int lineno, const __FlashStringHelper *exp)
 Output assertion to Serial when the assertion expression is false. More...
 

Detailed Description

TestAbleButton utilities for producing assert failures.

This module provides an __assert function implementation for the assert() calls that fail. This function uses locally defined print-stream << operators to make it easier to output to the Serial object using C++ style stream output operations.

Definition in file Utils.cpp.

Function Documentation

◆ assertSerial()

void assertSerial ( const char *  func,
const char *  file,
int  lineno,
const __FlashStringHelper *  exp 
)

Output assertion to Serial when the assertion expression is false.

Parameters
funcThe func (function) name.
fileThe FILE name.
linenoThe LINE number.
expThe failing assertion expression.

Definition at line 13 of file Utils.cpp.