Skip to content

chore: add matlab sample program#20

Open
mir-huzaif wants to merge 1 commit into
masterfrom
huzaif/add-matlab
Open

chore: add matlab sample program#20
mir-huzaif wants to merge 1 commit into
masterfrom
huzaif/add-matlab

Conversation

@mir-huzaif

Copy link
Copy Markdown

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a MATLAB sample that demonstrates calling the LexActivator native library via loadlibrary/calllib, and updates the MATLAB header copies accordingly. It also removes the legacy C/C++ sample project files under examples/.

Changes:

  • Added matlab/Sample.m showing a basic activation / trial flow using calllib.
  • Updated MATLAB header copies (matlab/LexActivator.h, matlab/LexTypes.h, matlab/LexStatusCodes.h) to reflect the intended API surface/types.
  • Removed prior examples/ build artifacts (VS solution/project, Makefile, and sample C++).

Reviewed changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
matlab/Sample.m New MATLAB sample script exercising core LexActivator calls.
matlab/LexTypes.h Updates MATLAB-facing struct definitions used by loadlibrary.
matlab/LexStatusCodes.h Minor formatting adjustment in the include guard line.
matlab/LexActivator.h Adjusts MATLAB-facing API macros/docs and removes some declarations.
examples/Sample.cpp Removed legacy C++ sample program.
examples/Makefile Removed legacy Makefile-based build for the sample.
examples/Sample.sln Removed legacy Visual Studio solution for the sample.
examples/Sample.vcxproj Removed legacy Visual Studio project for the sample.
Comments suppressed due to low confidence (2)

matlab/LexActivator.h:958

  • Parameter name in the comment doesn’t match the function signature. GetActivationMeterAttributeUses() takes uint32_t *uses, so the doc should refer to uses (not allowedUses).
    matlab/LexActivator.h:572
  • PR title indicates adding a MATLAB sample, but this change also alters the public header surface (e.g., removing API declarations like GetLicenseEntitlementSetTier/GetLastActivationError/SyncLicenseActivation/SyncTrialActivation) and adjusts public struct definitions in LexTypes.h. If these are intentional breaking API changes, please document them and/or update the PR title/description accordingly; otherwise consider scoping header edits to MATLAB-only compatibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread matlab/Sample.m
Comment on lines +69 to +75
function output = toString(input)
if ispc
output = [int8(input) 0];
else
output = input;
end
end
Comment thread matlab/Sample.m
Comment on lines +5 to +8
%Loads the C library of LexActivator
sHeaderFile = './LexActivator.h';
sStatusHeaderFile = './LexStatusCodes.h';
sSharedLibrary = 'LexActivator';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants