Project

General

Profile

Understanding the source code

Added by Rochus Keller over 1 year ago

I found the following declarations in your code and am not sure what the intention is:

using Context =
#include "asmgeneratorcontext.hpp"
in asmgenerator.cpp line 33

using Context =
#include "armgeneratorcontext.hpp"
in armgenerator.cpp line 26

using Context =
#include "asmcheckercontext.hpp"
in asmchecker.cpp line 31

The includes are expande by the preprocessor recursively, so the effect might even be dependend on the order of includes.

The code generally uses C++ in a very creative way with some constructions that I have not seen of this sort before. C++ is still full of surprises, even though I've been working with it for thirty years.


Replies (28)

RE: Understanding the source code - Added by Rochus Keller over 1 year ago

The links to the files will become invalid

No problem, I will update them, since I want to push your new versions to the sources repository anyway.

RE: Understanding the source code - Added by Florian Negele over 1 year ago

I am considering making the Subversion repository public. Would this still necessitate a GitHub repository in your opinion?

RE: Understanding the source code - Added by Rochus Keller over 1 year ago

Would this still necessitate a GitHub repository in your opinion?

Well, it may be a matter of preference (personally I prefer Git to Subversion), but beyond that I find a repository useful that only maps the releases, and not all incremental daily updates.

(26-28/28)