SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
spike
cb_error.h
1
// SPDX-License-Identifier: MIT
2
/*
3
* Copyright (c) 2022 Embedded and Real-Time Systems Laboratory,
4
* Graduate School of Information Science, Nagoya Univ., JAPAN
5
*/
6
7
#ifndef _SPIKE_CB_ERROR_H_
8
#define _SPIKE_CB_ERROR_H_
9
10
#include <pbio/error.h>
11
12
#define check_pbio_error_r(err, retval) \
13
if ((err) != PBIO_SUCCESS) { \
14
return retval; \
15
}
16
17
#define check_pbio_error(err) check_pbio_error_r(err, err)
18
19
#endif
// _SPIKE_CB_ERROR_H_
構築:
1.9.4