Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
e92f2c27
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
1 年多 前同步成功
通知
36
Star
144
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Unity
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e92f2c27
编写于
12月 29, 2016
作者:
J
jsalling
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update comments to reflect changes to floating point
上级
f771f0b9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
26 deletion
+14
-26
examples/unity_config.h
examples/unity_config.h
+14
-26
未找到文件。
examples/unity_config.h
浏览文件 @
e92f2c27
/* Unity Configuration
* As of May 11th, 2016 at ThrowTheSwitch/Unity commit 837c529
* Update:
August 25
th, 2016
* Update:
December 29
th, 2016
* See Also: Unity/docs/UnityConfigurationGuide.pdf
*
* Unity is designed to run on almost anything that is targeted by a C compiler.
...
...
@@ -37,11 +37,6 @@
#ifndef UNITY_CONFIG_H
#define UNITY_CONFIG_H
#ifdef __cplusplus
extern
"C"
{
#endif
/* ************************* AUTOMATIC INTEGER TYPES ***************************
* C's concept of an integer varies from target to target. The C Standard has
* rules about the `int` matching the register size of the target
...
...
@@ -122,10 +117,9 @@ extern "C"
/* By default, Unity guesses that you will want single precision floating point
* support, but not double precision. It's easy to change either of these using
* the include and exclude options here. You may include neither,
either, or
* both, as suits your needs.
* the include and exclude options here. You may include neither,
just float,
*
or
both, as suits your needs.
*/
/* #define UNITY_INCLUDE_FLOAT */
/* #define UNITY_EXCLUDE_FLOAT */
/* #define UNITY_INCLUDE_DOUBLE */
/* #define UNITY_EXCLUDE_DOUBLE */
...
...
@@ -137,18 +131,15 @@ extern "C"
/* Unity aims for as small of a footprint as possible and avoids most standard
* library calls (some embedded platforms don't have a standard library!).
* Because of this, its routines for printing integer values are minimalist and
* hand-coded. To keep Unity universal, though, we chose to _not_ develop our
* own floating point print routines. Instead, the display of floating point
* values during a failure are optional. By default, Unity will not print the
* actual results of floating point assertion failure. So a failed assertion
* will produce a message like `"Values Not Within Delta"`. If you would like
* verbose failure messages for floating point assertions, use these options to
* give more explicit failure messages (e.g. `"Expected 4.56 Was 4.68"`). Note
* that this feature requires the use of `sprintf` so might not be desirable in
* all cases.
* hand-coded. To keep Unity universal, though, we eventually chose to develop
* our own floating point print routines. Still, the display of floating point
* values during a failure are optional. By default, Unity will print the
* actual results of floating point assertion failures. So a failed assertion
* will produce a message like "Expected 4.0 Was 4.25". If you would like less
* verbose failure messages for floating point assertions, use this option to
* give a failure message `"Values Not Within Delta"` and trim the binary size.
*/
/* #define UNITY_FLOAT_VERBOSE */
/* #define UNITY_DOUBLE_VERBOSE */
/* #define UNITY_EXCLUDE_FLOAT_PRINT */
/* If enabled, Unity assumes you want your `FLOAT` asserts to compare standard C
* floats. If your compiler supports a specialty floating point type, you can
...
...
@@ -211,8 +202,8 @@ extern "C"
* serial `RS232_putc()` function you wrote like thus:
*/
/* #define UNITY_OUTPUT_CHAR(a) RS232_putc(a) */
/* #define UNITY_OUTPUT_FLUSH() RS232_
config(115200,1,8,0
) */
/* #define UNITY_OUTPUT_START() RS232_
flush(
) */
/* #define UNITY_OUTPUT_FLUSH() RS232_
flush(
) */
/* #define UNITY_OUTPUT_START() RS232_
config(115200,1,8,0
) */
/* #define UNITY_OUTPUT_COMPLETE() RS232_close() */
/* For some targets, Unity can make the otherwise required `setUp()` and
...
...
@@ -232,6 +223,7 @@ extern "C"
*/
/* #define UNITY_SUPPORT_WEAK weak */
/* #define UNITY_SUPPORT_WEAK __attribute__((weak)) */
/* #define UNITY_NO_WEAK */
/* Some compilers require a custom attribute to be assigned to pointers, like
* `near` or `far`. In these cases, you can give Unity a safe default for these
...
...
@@ -242,8 +234,4 @@ extern "C"
/* #define UNITY_PTR_ATTRIBUTE __attribute__((far)) */
/* #define UNITY_PTR_ATTRIBUTE near */
#ifdef __cplusplus
}
#endif
/* extern "C" */
#endif
/* UNITY_CONFIG_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录