top | item 44287420 (no title) yomimiva | 8 months ago For the curious minds: https://github.com/haiku/haiku/blob/master/src/system/libroo... discuss order hn newest tomn|8 months ago looking around a bit, it's used as an example in the documentation:https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02...This is actually a great reason to keep it around; it's as simple as possible, and nothing uses it so it's easy to find the relevant bits of code. vjvjvjvjghv|8 months ago Makes sense:is_computer_on() int32 is_computer_on(); Returns 1 if the computer is on. If the computer isn't on, the value returned by this function is undefined.
tomn|8 months ago looking around a bit, it's used as an example in the documentation:https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02...This is actually a great reason to keep it around; it's as simple as possible, and nothing uses it so it's easy to find the relevant bits of code.
vjvjvjvjghv|8 months ago Makes sense:is_computer_on() int32 is_computer_on(); Returns 1 if the computer is on. If the computer isn't on, the value returned by this function is undefined.
tomn|8 months ago
https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02...
This is actually a great reason to keep it around; it's as simple as possible, and nothing uses it so it's easy to find the relevant bits of code.
vjvjvjvjghv|8 months ago
is_computer_on() int32 is_computer_on(); Returns 1 if the computer is on. If the computer isn't on, the value returned by this function is undefined.