Re: [hatari-devel] Handing WinUAE CPU core write_log() |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Handing WinUAE CPU core write_log()
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 6 May 2018 22:13:43 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1525637624; bh=fBRBPcPR2bcE7VxlKdpp/3TVHrGbQbZfOHoIHMDP9Hc=; h=Date:From:To:Subject:From; b=im7iOdmdP77+oFfRV+4NZt5q1BBS1CLEbFsiR+1Mds2znzVnigxNo9NcdaOpuCCOh JZhq6/x824awZHnJ6AB9BECIowHB651isJFf2LZ87VxRBvbBRfEwG1xe84a+/e6jUg rcss9EkV2UhYBLMOIBFSlq7kH8LeePH6ApRaQ3dKB9HrjVp4/CG+mJ0mYeWLoByUSv NZFIq4Omg4absF4DvMfRHO9D1GGmO/QVwBHJPMtHngMWCTzLzxgbmCpHMGMVPRzfPx YzylkNcf012m2ywYRQ3Y0cH4IhsSEx3K3bV35OYi2KTs95gdiVwgQe5F3TlwFE7+j6 eFiK3QMeunRFA==
Am Sun, 6 May 2018 18:28:00 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> Hi Thomas,
>
> What do you think of the attached way of handling
> WinUAE CPU core write_log()?
>
> It uses C99 feature to map write_log() to Log_Printf()
> instead of the bWriteLog stuff you added a while ago.
Basically a good idea, but does that really work? IIRC I once tried
something similar, but I ran into some problems ... isn't write_log
also required for build68k and gencpu? But we do not link the log
code to these binaries, do we? Have you tried rebuilding Hatari
completely this way?
Anyway, you certainly don't need these "C99" comments in the sourcecode
here - we already use __VA_ARGS__ in a couple of places already, so this is
already a prerequisite for building Hatari.
Thomas