Initial commit: rustytokens — native codebase indexer + MCP server
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
commit
354132e887
43 files changed
+3783
No files matched your search
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
#include "math.hpp"
|
||||
|
||||
int main() {
|
||||
return Math::add(1, 2);
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
#include "math.hpp"
|
||||
|
||||
Math::Math(int scale) : scale_(scale) {
|
||||
scale_ = scale;
|
||||
}
|
||||
|
||||
Math::~Math() {
|
||||
scale_ = 0;
|
||||
}
|
||||
|
||||
int Math::add(int a, int b) { return a + b; }
|
||||
|
||||
int Math::scaled(int v) const { return v * scale_; }
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
class Math {
|
||||
public:
|
||||
Math(int scale);
|
||||
~Math();
|
||||
static int add(int a, int b);
|
||||
int scaled(int v) const;
|
||||
private:
|
||||
int scale_;
|
||||
};
|
||||
Reference in new issue
Block a user