I made a test implementation of the proposal. I also made some tests
with video subsystem and it eliminated problem I was having.
In case there is a similar case that I had, so it is necessary to reset
error state but not to discard the actual error message here is some
idea how it should be used:
I think there is a 'bug' in the example. Or maybe I'm missing something.
On 17 Prosinec 2005, 18:40, Vesa Jääskeläinen napsal(a):
> ---
> /* Save possible old error message. */
> grub_error_push ();
>
> /* Do your stuff here. */
> call_possibly_failing_function ();
>
> if (grub_errno != GRU
Tomáš Ebenlendr wrote:
> I think there is a 'bug' in the example. Or maybe I'm missing something.
Nope, it was intentional. :)
> On 17 Prosinec 2005, 18:40, Vesa Jääskeläinen napsal(a):
>
>> ---
>> /* Save possible old error message. */
>> grub_error_push ();
>>
>> /* Do your stuff here. *