05-16-2014 11:12 AM
It appears that the Data Tooltip in the CVI editor does not like bool...
I am attaching three pictures to illustrate the process: there is some code (a function), and when typing the Data Tooltip shows the function definition; this mostly works except sometimes, see below. 'Sometimes' seems to be related to boolean function definitions
1)
2)
3)
05-19-2014 12:57 PM
Hi Wolfgang,
I haven't been able to reproduce this yet. Here is what I did:
I don't know if it depends on how bool is defined. Can you reproduce this outside of your project and, if so, can you share your definition of bool?
Luis
05-19-2014 01:01 PM
Thanks for trying...
I used
#include <stdbool.h>
05-20-2014 04:12 AM
Hi Luis,
I have been able to reproduce it in a simple demo, see below:
05-20-2014 01:54 PM
Thanks, Wolfgang. With your help, I've reproduced and confirmed the bug: 473109.
The difference here is in the use of the clang-intrinsic _Bool data type (via stdbool,h). If you define bool yourself to something else (for example, typedef int bool), then the bug doesn't happen.
05-20-2014 02:35 PM
Thanks Luis!